[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
STRIP(SEXP1,SEXP2) (STRING)
Function
Remove all occurrences of a character from a string.
Syntax
STRIP(str,ch)
str = Any string expression.
ch = String whose first character is used for removal from str.
Return Type & Value
STRING
Returns sexp without occurrences of ch that may have been present
previously.
Remarks
This function is used to strip a selected character from a string. This
can be useful when you need to remove known formatting characters from
a string, such as slashes and hyphens from a date string.
Examples
STRING s
WHILE (LEN(s) < 6) DO
INPUTSTR "Enter date (MM-DD-YY)",s,@X0E,8,"0123456789-",DEFS
LET s = STRIP(s,"-")
ENDWHILE
PRINTLN "Date (MMDDYY): ",s
See Also:
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson